﻿namespace EFS.RC.CC.Deployment.Tables.DataRow.Operators.Skills
{
	internal static class Skill
	{
		/// <summary>
		/// Load internals from data row
		/// </summary>
		/// <param name="row"></param>
		internal static EFS.RC.CC.Deployment.Entities.Operators.Skills.Skill Load(System.Data.DataRow row)
		{
			// check
			EFS.Common.Verify.Reference(row, "row");

			// loaded 
			EFS.RC.CC.Deployment.Entities.Operators.Skills.Skill loaded = new EFS.RC.CC.Deployment.Entities.Operators.Skills.Skill();

			// AGENT_ID
			loaded.AgentID = EFS.DB.DataRow.Int32(row, "AGENT_ID");

			// SKILL_ID
			loaded.SkillID = EFS.DB.DataRow.Int32(row, "SKILL_ID");

			// SKILL_VALUE
			loaded.SkillValue = EFS.DB.DataRow.Int32(row, "SKILL_VALUE");
		
			// done
			return loaded;
		}
	}
}